Goes on: Source Text
Counts up to any number with an ease-out and thousands separators. Set the prefix to $ or the suffix to %.

// Number Counter — Coherent Motion Expressions · getcoherent.app/resources
var from = 0, to = 12500;    // numbers
var seconds = 1.6;           // how long the count takes
var decimals = 0;
var prefix = "", suffix = "";
var t = Math.min(1, Math.max(0, (time - inPoint) / seconds));
var v = from + (to - from) * (1 - Math.pow(1 - t, 4));
var parts = v.toFixed(decimals).split(".");
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
prefix + parts.join(".") + suffix
